package com.hyt.it.ogt.ks.service.es;

import com.hyt.it.ogt.ks.es.CandidateOperationTrackLogDTO;

import java.util.List;
import java.util.Set;

/**
 * 考试对接es服务
 *
 * @author zhoumiao
 * @since 2022/12/14 10:43
 **/
public interface IEsAndDbService {

    void saveOrUpdateApplyCheckByIds(Set<String> applyCheckIds);
    void saveOrUpdateApplyCheckById(String applyCheckId);

    void saveOrUpdateCandidateLogOtherByIds(Set<String> logOtherIds);
    void saveOrUpdateCandidateLogOtherById(String logOtherId);

    void importLogOther2eS(String examId, List<String> candidateIds);

    void importApplyCheck2eS(String examId, List<String> candidateIds);

    void deleteApplyCheckByBeforeDays(Integer beforeDays);

    void deleteLogOtherByBeforeDays(Integer beforeDays);

    void saveCandidateOperationTrackLog(List<CandidateOperationTrackLogDTO> candidateOperationTrackLogList);

    void asyncSaveCandidateOperationTrackLog(List<CandidateOperationTrackLogDTO> candidateOperationTrackLogList);

    void deleteCandidateOperationTrackLogByExamId(String examId);

    void deleteCandidateOperationTrackLogAll();
}